Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Determine  if  computer  is  member  of  a  domain  

 Content of Determine if computer is member of a domain.vbs
MD5 Hash: ECFE516169ADBA93A9B28577538AB23E
Dim oComputerSystem : Set oComputerSystem = GetObject("winmgmts://.").InstancesOf("Win32_ComputerSystem")
Dim bMember : bMember = false


For Each oEntry in oComputerSystem
If oEntry.DomainRole = 1 then
WScript.Echo "Computer is Member of a Domain"
bMember = true
Exit For
End if
Next

If (bMember = false) then
WScript.Echo "Computer is not Member of a Domain"
End if

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a